package com.ttwm.dao;

import com.ttwm.pojo.Food;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FoodDao {
    @Select("select * from t_food")
    List<Food> foodAll();

    @Select("select * from t_food where foodId=#{id}")
    Food foodOne(int id);
}
